package com.chucang.shucang.oms.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import com.chucang.shucang.oms.feign.vo.BlindBoxBaseEntity;
import com.chucang.shucang.oms.feign.vo.CollectionBaseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/4 18:22
 * @description
 */
@FeignClient(contextId = "oms-pms", value = "shucang-pms")
public interface PmsService {

    @GetMapping("/pms/collectionbase/getCollectionBaseInfo/{id}")
    R<CollectionBaseEntity> getCollectionBaseInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/blindboxbase/getBlindBoxBaseInfo/{id}")
    R<BlindBoxBaseEntity> getBlindBoxBaseInfo(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/collectionmall/unlockCollectionStock/{id}")
    R<String> unlockCollectionStock(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);

    @GetMapping("/pms/blindboxmall/unlockBlindBoxStock/{id}")
    R<String> unlockBlindBoxStock(@PathVariable("id") Long id, @RequestHeader(SecurityConstant.FROM) String from);
}
